package com.walker.taogong.dal;


import java.util.List;

import com.walker.taogong.datamodel.User;
import com.walker.taogong.datamodel.Worker;



/**
 * name dao
 * 
 * @author Alex Wei
 *
 */
public interface UserDal {
	

    public List<User> getUserList();

    public User getUserById(int nameId);
    public User getUserByUserName(String userName);
    public User getUserByEmail(String email);
    public User getUserByMobile(String mobile);
    public User getUserByEmailAndPwd(String email, String password);
    public User getUserByMobileAndPwd(String mobile, String password);
    
    public void saveUser(User user);
    public void saveWorker(Worker worker);
    
}
